package org.cornland.systemWarning.service;

import org.cornland.systemWarning.model.DataExceptionAlarm;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Hawk Tang
 * @since 2021-11-03
 */


public interface DataExceptionAlarmService extends IService<DataExceptionAlarm> {

    DataExceptionAlarm getLast(String wellId, Integer type);

    DataExceptionAlarm getLastWithTag(String wellId, Integer type,String tag, Integer piType);

    DataExceptionAlarm selectByPrimaryKey(Integer id);

    List<DataExceptionAlarm> selectAll();

    Integer insert(DataExceptionAlarm dataExceptionAlarm);

    Integer updateByPrimaryKey(DataExceptionAlarm dataExceptionAlarm);

    Integer deleteByPrimaryKey(Integer id);


    Map<String, Object> findDataExceptionAlarmConfig(int type);
}
